
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<? include_once("autenticacao.php"); ?>
<html>

<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1"/>
<meta name="description" content="description"/>
<meta name="keywords" content="keywords"/> 
<meta name="author" content="author"/> 
<link rel="stylesheet" type="text/css" href="default.css" media="screen"/>
<title>Portal de Vendas - Grupo 7</title>
</head>

<body>

<div class="container">

	<? include_once("header.php"); ?>
    <? include_once("menu_lateral.php"); ?>

<?php

/**
 * hello_messageService class
 * 
 *  
 * 
 * @author    {author}
 * @copyright {copyright}
 * @package   {package}
 */
class hello_messageService extends SoapClient {

  private static $classmap = array(
                                   );

  public function hello_messageService($wsdl = "HelloMessage.wsdl", $options = array()) {
    foreach(self::$classmap as $key => $value) {
      if(!isset($options['classmap'][$key])) {
        $options['classmap'][$key] = $value;
      }
    }
    parent::__construct($wsdl, $options);
  }

  /**
   *  
   *
   * @param string $token
   * @param string $destinatarios
   * @param string $template_id
   * @param string $fields
   * @return string
   */
  public function HelloMessage($token, $destinatarios, $template_id, $fields) {
    return $this->__soapCall('HelloMessage', array($token, $destinatarios, $template_id, $fields),       array(
            'uri' => 'urn:ActionWebService',
            'soapaction' => ''
           )
      );
  }

}

if(isset($_GET["email"])){
    $soap = new hello_messageService();
    $return = $soap->HelloMessage("1", $_GET["email"], "1", $_SESSION["usuario"].",".$_GET["protocolo"]);

    print $return;
}
?>

	<? include_once("footer.php"); ?>

</div>

</body>

</html>
